package com.campus.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.campus.pojos.domain.ChatMessage;

import java.util.List;

public interface ChatMessageService extends IService<ChatMessage> {
    /**
     * 获取聊天内容
     * @param fromUserId
     * @param toUserId
     * @return
     */
    List<ChatMessage> getMessage(Integer fromUserId, Integer toUserId);

    ChatMessage getById(Long id);
}
